package com.ruoyi.dp.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.StringJoiner;

/**
 *
 * 对象 dp_flight_plan
 *
 * @author Gerald
 * @date 2024-11-23
 */
@Data
@ApiModel(description = "当日航班计划")
public class DpFlightPlan extends DpBaseEntity{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("航班日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "航班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String flightDate;

    @ApiModelProperty("航班号")
    @Excel(name = "航班号")
    private String flightNum;

    @ApiModelProperty("性质")
    @Excel(name = "性质")
    private String nature;

    @ApiModelProperty("机号")
    @Excel(name = "机号")
    private String aircraftNum;

    @ApiModelProperty("机型")
    @Excel(name = "机型")
    private String model;

    @ApiModelProperty("计划起降时间")
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "计划起降时间", width = 30, dateFormat = "HH:mm:ss")
    private String planTakeOff;

    @ApiModelProperty("计划到达时间")
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "计划到达时间", width = 30, dateFormat = "HH:mm:ss")
    private String planArrival;

    @ApiModelProperty("起飞机场")
    @Excel(name = "起飞机场")
    private String takeOffAirport;

    @ApiModelProperty("降落机场")
    @Excel(name = "降落机场")
    private String landingAirport;

    @Override
    public String toString() {
        return new StringJoiner(", ", DpFlightPlan.class.getSimpleName() + "[", "]")
                .add("flightDate=" + flightDate)
                .add("flightNum='" + flightNum + "'")
                .add("nature='" + nature + "'")
                .add("aircraftNum='" + aircraftNum + "'")
                .add("model='" + model + "'")
                .add("planTakeOff='" + planTakeOff + "'")
                .add("planArrival='" + planArrival + "'")
                .add("takeOffAirport='" + takeOffAirport + "'")
                .add("landingAirport='" + landingAirport + "'")
                .toString();
    }
}
